﻿using BankCreditPortfolio.DAL.Entities;
using System.Linq;
namespace BankCreditPortfolio.DAL.Services
{
    public class TariffsDocumentsService : DataService<TariffsDocuments>
    {
        public bool Find (TariffsDocuments obj)
        {
            return this.CreateQuery().Where(x => x.TariffId == obj.TariffId && x.DocumentTypeId == obj.DocumentTypeId).Count() > 0; 
        }
    }
}